package com.yooohooo.designpattern.factorybuilder;

import com.yooohooo.designpattern.bean.phone.SonyPhone;
import com.yooohooo.designpattern.builder.PhoneDirector;
import com.yooohooo.designpattern.builder.SonyPhoneBuilder;
import com.yooohooo.designpattern.factory.method.PhoneFactory;

/**
 * @ClassName: SonyFactory
 * @Description:
 * @author Yooo
 * @date 2017年6月16日 上午1:54:53
 * 
 */
public class SonyPhoneFactory implements PhoneFactory {
	private PhoneDirector director = new PhoneDirector();

	public SonyPhone getPhone() {
		SonyPhoneBuilder builder = new SonyPhoneBuilder();
		return (SonyPhone) director.construct(builder);
	}
}
